Optimal. Leaf size=126 \[ \frac {i x}{16 a^4}+\frac {3}{16 a^4 d (1+i \tan (c+d x))}+\frac {\tan ^4(c+d x)}{8 d (a+i a \tan (c+d x))^4}+\frac {i \tan ^3(c+d x)}{12 a d (a+i a \tan (c+d x))^3}-\frac {1}{16 d \left (a^2+i a^2 \tan (c+d x)\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {3628, 3627,
3621, 3607, 8} \begin {gather*} \frac {3}{16 a^4 d (1+i \tan (c+d x))}+\frac {i x}{16 a^4}-\frac {1}{16 d \left (a^2+i a^2 \tan (c+d x)\right )^2}+\frac {\tan ^4(c+d x)}{8 d (a+i a \tan (c+d x))^4}+\frac {i \tan ^3(c+d x)}{12 a d (a+i a \tan (c+d x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3607
Rule 3621
Rule 3627
Rule 3628
Rubi steps
\begin {align*} \int \frac {\tan ^3(c+d x)}{(a+i a \tan (c+d x))^4} \, dx &=\frac {\tan ^4(c+d x)}{8 d (a+i a \tan (c+d x))^4}+\frac {\int \frac {\tan ^3(c+d x)}{(a+i a \tan (c+d x))^3} \, dx}{2 a}\\ &=\frac {\tan ^4(c+d x)}{8 d (a+i a \tan (c+d x))^4}+\frac {i \tan ^3(c+d x)}{12 a d (a+i a \tan (c+d x))^3}-\frac {i \int \frac {\tan ^2(c+d x)}{(a+i a \tan (c+d x))^2} \, dx}{4 a^2}\\ &=\frac {\tan ^4(c+d x)}{8 d (a+i a \tan (c+d x))^4}+\frac {i \tan ^3(c+d x)}{12 a d (a+i a \tan (c+d x))^3}-\frac {1}{16 d \left (a^2+i a^2 \tan (c+d x)\right )^2}-\frac {i \int \frac {a-2 i a \tan (c+d x)}{a+i a \tan (c+d x)} \, dx}{8 a^4}\\ &=\frac {3}{16 a^4 d (1+i \tan (c+d x))}+\frac {\tan ^4(c+d x)}{8 d (a+i a \tan (c+d x))^4}+\frac {i \tan ^3(c+d x)}{12 a d (a+i a \tan (c+d x))^3}-\frac {1}{16 d \left (a^2+i a^2 \tan (c+d x)\right )^2}+\frac {i \int 1 \, dx}{16 a^4}\\ &=\frac {i x}{16 a^4}+\frac {3}{16 a^4 d (1+i \tan (c+d x))}+\frac {\tan ^4(c+d x)}{8 d (a+i a \tan (c+d x))^4}+\frac {i \tan ^3(c+d x)}{12 a d (a+i a \tan (c+d x))^3}-\frac {1}{16 d \left (a^2+i a^2 \tan (c+d x)\right )^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.49, size = 95, normalized size = 0.75 \begin {gather*} \frac {\sec ^4(c+d x) (16 \cos (2 (c+d x))+3 (1+8 i d x) \cos (4 (c+d x))+32 i \sin (2 (c+d x))-3 i \sin (4 (c+d x))-24 d x \sin (4 (c+d x)))}{384 a^4 d (-i+\tan (c+d x))^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.15, size = 87, normalized size = 0.69
method | result | size |
risch | \(\frac {i x}{16 a^{4}}+\frac {{\mathrm e}^{-2 i \left (d x +c \right )}}{16 a^{4} d}-\frac {{\mathrm e}^{-6 i \left (d x +c \right )}}{48 a^{4} d}+\frac {{\mathrm e}^{-8 i \left (d x +c \right )}}{128 a^{4} d}\) | \(60\) |
derivativedivides | \(\frac {\frac {i}{16 \tan \left (d x +c \right )-16 i}-\frac {5 i}{12 \left (\tan \left (d x +c \right )-i\right )^{3}}+\frac {1}{8 \left (\tan \left (d x +c \right )-i\right )^{4}}-\frac {7}{16 \left (\tan \left (d x +c \right )-i\right )^{2}}+\frac {\ln \left (\tan \left (d x +c \right )-i\right )}{32}-\frac {\ln \left (\tan \left (d x +c \right )+i\right )}{32}}{d \,a^{4}}\) | \(87\) |
default | \(\frac {\frac {i}{16 \tan \left (d x +c \right )-16 i}-\frac {5 i}{12 \left (\tan \left (d x +c \right )-i\right )^{3}}+\frac {1}{8 \left (\tan \left (d x +c \right )-i\right )^{4}}-\frac {7}{16 \left (\tan \left (d x +c \right )-i\right )^{2}}+\frac {\ln \left (\tan \left (d x +c \right )-i\right )}{32}-\frac {\ln \left (\tan \left (d x +c \right )+i\right )}{32}}{d \,a^{4}}\) | \(87\) |
norman | \(\frac {\frac {1}{12 d a}+\frac {i x}{16 a}-\frac {\tan ^{6}\left (d x +c \right )}{2 d a}+\frac {3 \left (\tan ^{4}\left (d x +c \right )\right )}{4 d a}+\frac {\tan ^{2}\left (d x +c \right )}{3 d a}+\frac {i x \left (\tan ^{2}\left (d x +c \right )\right )}{4 a}+\frac {3 i x \left (\tan ^{4}\left (d x +c \right )\right )}{8 a}+\frac {i x \left (\tan ^{6}\left (d x +c \right )\right )}{4 a}+\frac {i x \left (\tan ^{8}\left (d x +c \right )\right )}{16 a}-\frac {i \tan \left (d x +c \right )}{16 d a}-\frac {11 i \left (\tan ^{3}\left (d x +c \right )\right )}{48 d a}-\frac {53 i \left (\tan ^{5}\left (d x +c \right )\right )}{48 d a}+\frac {i \left (\tan ^{7}\left (d x +c \right )\right )}{16 d a}}{\left (1+\tan ^{2}\left (d x +c \right )\right )^{4} a^{3}}\) | \(207\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 54, normalized size = 0.43 \begin {gather*} \frac {{\left (24 i \, d x e^{\left (8 i \, d x + 8 i \, c\right )} + 24 \, e^{\left (6 i \, d x + 6 i \, c\right )} - 8 \, e^{\left (2 i \, d x + 2 i \, c\right )} + 3\right )} e^{\left (-8 i \, d x - 8 i \, c\right )}}{384 \, a^{4} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.61, size = 156, normalized size = 1.24 \begin {gather*} \begin {cases} \frac {\left (6144 a^{8} d^{2} e^{14 i c} e^{- 2 i d x} - 2048 a^{8} d^{2} e^{10 i c} e^{- 6 i d x} + 768 a^{8} d^{2} e^{8 i c} e^{- 8 i d x}\right ) e^{- 16 i c}}{98304 a^{12} d^{3}} & \text {for}\: a^{12} d^{3} e^{16 i c} \neq 0 \\x \left (\frac {\left (i e^{8 i c} - 2 i e^{6 i c} + 2 i e^{2 i c} - i\right ) e^{- 8 i c}}{16 a^{4}} - \frac {i}{16 a^{4}}\right ) & \text {otherwise} \end {cases} + \frac {i x}{16 a^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.17, size = 88, normalized size = 0.70 \begin {gather*} -\frac {\frac {12 \, \log \left (\tan \left (d x + c\right ) + i\right )}{a^{4}} - \frac {12 \, \log \left (\tan \left (d x + c\right ) - i\right )}{a^{4}} + \frac {25 \, \tan \left (d x + c\right )^{4} - 124 i \, \tan \left (d x + c\right )^{3} - 54 \, \tan \left (d x + c\right )^{2} - 4 i \, \tan \left (d x + c\right ) - 7}{a^{4} {\left (\tan \left (d x + c\right ) - i\right )}^{4}}}{384 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.90, size = 60, normalized size = 0.48 \begin {gather*} \frac {x\,1{}\mathrm {i}}{16\,a^4}+\frac {\frac {{\mathrm {tan}\left (c+d\,x\right )}^3\,1{}\mathrm {i}}{16}-\frac {{\mathrm {tan}\left (c+d\,x\right )}^2}{4}+\frac {\mathrm {tan}\left (c+d\,x\right )\,13{}\mathrm {i}}{48}+\frac {1}{12}}{a^4\,d\,{\left (1+\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________